<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="text" id="i1">
<input type="text" id="i2">
<input type="text" id="i3">
<input type="button" value="提交" onclick=" f1()">
<table border="1">
    <tr>
        <th>姓名</th>
        <th>工资</th>
        <th>工资</th>
    </tr>
</table>
<script>
    let table = document.querySelector("table");
    function f1(){
        let tr = document.createElement("tr");
        let i11 = document.createElement("td");
        let i22 = document.createElement("td");
        let i33 = document.createElement("td");
          i11.innerText = i1.value;
          i22.innerText = i2.value;
          i33.innerText = i3.value;
        tr.append(i11,i22,i33);
        table.append(tr);
    }
</script>
</body>
</html>